package com.example.demo;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * 单独部署到外置的容器
 * @author Administrator
 *
 */
public class SpringBootStartApplication extends SpringBootServletInitializer {

	@Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // 注意这里要指向原先用main方法执行的Application启动类
		setRegisterErrorPageFilter(false);//设置false,未捕获异常交由容器处理
        return builder.sources(DemoApplication.class);
    }
	
	
	
}
